CREATE VERTEX SHADER FROM FILE
This command will create a vertex shader from a specified text file.
CREATE VERTEX SHADER FROM FILE VertexShader Number, Shader Filename
VertexShader Number
Integer
This value is an integer number such as 1.
Shader Filename
String
This value is a string value encased in speech marks.
This command does not return a value.
Use this command in concert with other vertex shader commands to create a special effect on a 3D object. Vertex shaders are powerful programmable effects, and not all 3D devices support them. Make sure that your shader text file includes the minimum amount of information with your code in order that assembly can take place. Ensure you are using the correct versioning label and that the input vertex data format is specified. An example of this syntax might be "vs.1.0 dcl_position v0 dcl_normal v3 dcl_color v6 dcl_texcoord0 v7".
No example code is provided for this command
BASIC3D Commands Menu
Index